import request from "@/utils/request"
// 订单列表
export const refundList = (data) =>
  request({
    url: `/saihe/refund/list`,
    method: "post",
    data,
  })

// 赛盒退款单审核
export const auditRefund = (data) =>
  request({
    url: `/saihe/audit-refund`,
    method: "post",
    data,
  })
// 申请赛盒退款单
export const applyRefund = (data) =>
  request({
    url: `/saihe/apply-refund`,
    method: "post",
    data,
  })
// 赛盒订单详情
export const orderDetail = (params) =>
  request({
    url: `/saihe/order/detail`,
    method: "get",
    params,
  })

// 退款原因列表
export const getReasonList = (params) =>
  request({
    url: `/order/refund/reason/list`,
    method: "get",
    params,
  })
